/*package org.example.bootvue;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.data.redis.core.ValueOperations;

@SpringBootTest//如果再测试里增加这个注解，那么将来单元测试方法执行之前，会先初始化spring容器
public class Redistest {
    @Autowired
    private StringRedisTemplate stringRedisTemplate;

    @Test
    public void test() {
        //往redis中存储一个键值对 StringRedisTemplates
        ValueOperations<String, String> stringStringValueOperations = stringRedisTemplate.opsForValue();
    stringStringValueOperations.set("username", "zhangsan");
    }
}
*/